Add some sanity checks if the widget passed to gtk_drag_get_data() was not
authorOwen Taylor <otaylor@redhat.com>
Tue, 1 Feb 2000 19:05:18 +0000 (19:05 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 1 Feb 2000 19:05:18 +0000 (19:05 +0000)
Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
checks if the widget passed to gtk_drag_get_data() was not the
dest widget.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkdnd.c
gtk/gtkfontsel.c

index 317ed087b21d9758ed6485b9529ed10cac684c14..9700b9a7061787359606d2bfc2d6497602f0656d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
+       checks if the widget passed to gtk_drag_get_data() was not the
+       dest widget.
+
 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
 
         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
index 317ed087b21d9758ed6485b9529ed10cac684c14..9700b9a7061787359606d2bfc2d6497602f0656d 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
+       checks if the widget passed to gtk_drag_get_data() was not the
+       dest widget.
+
 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
 
         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
index 317ed087b21d9758ed6485b9529ed10cac684c14..9700b9a7061787359606d2bfc2d6497602f0656d 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
+       checks if the widget passed to gtk_drag_get_data() was not the
+       dest widget.
+
 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
 
         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
index 317ed087b21d9758ed6485b9529ed10cac684c14..9700b9a7061787359606d2bfc2d6497602f0656d 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
+       checks if the widget passed to gtk_drag_get_data() was not the
+       dest widget.
+
 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
 
         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
index 317ed087b21d9758ed6485b9529ed10cac684c14..9700b9a7061787359606d2bfc2d6497602f0656d 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
+       checks if the widget passed to gtk_drag_get_data() was not the
+       dest widget.
+
 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
 
         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
index 317ed087b21d9758ed6485b9529ed10cac684c14..9700b9a7061787359606d2bfc2d6497602f0656d 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
+       checks if the widget passed to gtk_drag_get_data() was not the
+       dest widget.
+
 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
 
         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
index 317ed087b21d9758ed6485b9529ed10cac684c14..9700b9a7061787359606d2bfc2d6497602f0656d 100644 (file)
@@ -1,3 +1,9 @@
+Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
+       checks if the widget passed to gtk_drag_get_data() was not the
+       dest widget.
+
 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
 
         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
index 635834e222fbaad32f541bc96fc1c8f1e11d4b2d..a6fd6e95d90ddd0f5354983e5a9a58efac065162 100644 (file)
@@ -1141,7 +1141,7 @@ gtk_drag_selection_received (GtkWidget        *widget,
 
       site = gtk_object_get_data (GTK_OBJECT (drop_widget), "gtk-drag-dest");
 
-      if (site->target_list)
+      if (site && site->target_list)
        {
          guint target_info;
 
@@ -1166,7 +1166,7 @@ gtk_drag_selection_received (GtkWidget        *widget,
                                   selection_data, 0, time);
        }
       
-      if (site->flags & GTK_DEST_DEFAULT_DROP)
+      if (site && site->flags & GTK_DEST_DEFAULT_DROP)
        {
 
          gtk_drag_finish (context, 
index 6e650a5bd72d8e48fe53f7ec24f363947b681634..8790c65b7dc1640206a23938bcbca7006ac6dd4c 100644 (file)
@@ -2922,17 +2922,8 @@ gtk_font_selection_get_fonts (void)
   fontsel_info->nfonts = 0;
   for (i = 0; i < num_fonts; i++)
     {
-#ifdef FONTSEL_DEBUG
-      g_message("%s\n", xfontnames[i]);
-#endif
       if (gtk_font_selection_is_xlfd_font_name (xfontnames[i]))
        gtk_font_selection_insert_font (fontnames, &fontsel_info->nfonts, xfontnames[i]);
-      else
-       {
-#ifdef FONTSEL_DEBUG
-         g_warning("Skipping invalid font: %s", xfontnames[i]);
-#endif
-       }
     }